package com.company.card_service.api;

import com.company.card_service.service.CompanyImageService;
import com.company.card_service.service.EmployeeService;
import com.company.card_service.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 邓小熙
 * @Date 2022/9/16 17:32
 * @Version 1.0
 */

@RestController
@RequestMapping("api/company/companyImage")
@Api(value = "提供公司简介页面显示所需的轮播图接口", tags = "轮播图管理")
public class ApiCompanyImageController {
    @Autowired
    private CompanyImageService companyImageService;
//    @Autowired
//    private EmployeeService employeeService;
    @GetMapping("/list/{cid}")
    @ApiOperation("公司简介轮播图接口")
    @ApiImplicitParam(dataType = "int",name = "cid",value = "公司id",required = true)
    public Result listCompanyImgs(@PathVariable Integer cid) {
        Result result = companyImageService.listCompanyImgs(cid);
        return result;
    }

}


